package com.owen.springboot.smartparkingms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class SmartParkingMsApplication extends SpringBootServletInitializer {

    private static final Logger logger = LoggerFactory.getLogger(SmartParkingMsApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(SmartParkingMsApplication.class, args);
        logger.info("智能停车场管理平台");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SmartParkingMsApplication.class);
    }
}
